package cn.xunjie.ymcc.dto;

import cn.xunjie.ymcc.util.AssertUtil;
import lombok.Data;

import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Data
public class RegisterDto {

   private String imageCodeKey;
   @Pattern(regexp = AssertUtil.phoneReg,message = "手机号不合法")
   private String mobile;
   @Size(min=3,max = 6,message = "密码必须是3-6位")
   private String password;
   @Size(min=4,max = 4,message = "验证码必须是 4 位")
   private String imageCode;
   @Size(min=4,max = 4,message = "验证码必须是 4 位")
   private String smsCode;
   private Integer regChannel;


}
